﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RWGLTasksNeedDealWith.aspx.cs" Inherits="WXYW.RWGLTasksNeedDealWith"
    UICulture="zh-CHS" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    任务管理-待处理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="applicationGridView" CssClass="tableList" BorderColor="#888888"
        BorderWidth="1px" runat="server" AutoGenerateColumns="False" AllowPaging="True"
        PageSize="20" Width="100%" OnPageIndexChanging="applicationGridView_PageIndexChanging"
        OnRowDataBound="applicationGridView_RowDataBound" OnMustAddARow="GridView_MustAddARow" 
        ondatabound="applicationGridView_DataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="任务主题" DataField="Subject" />
            <%--<asp:BoundField HeaderText="详细描述" DataField="Content" />--%>
            <asp:TemplateField HeaderText="创建人员">
                <ItemTemplate>
                    <%#Eval("User1.ContactPerson")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="执行人员">
                <ItemTemplate>
                    <%#Eval("User.ContactPerson")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="创建日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="预定完成日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ShouldCompleteDate")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="任务类型">
                <ItemTemplate>
                    <%#Eval("TaskType")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="问题类型">
                <ItemTemplate>
                    <%#Eval("ReasonType")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Status" HeaderText="处理状态">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docedit.gif" alt="" />
                    <asp:LinkButton ID="modifyLinkButton" OnClick="modifyLinkButton_click" CommandArgument='<%#Eval("ID") %>'
                        runat="server">修改</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= applicationGridView.Rows.Count%></span>条, <span style="color: Red">
                10</span>条/页 当前 <span style="color: Red">
                    <%= applicationGridView.PageIndex + 1%>/<%= applicationGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
</asp:Content>
